import footer from './footer'

export default [
  {
    path: '/',
    redirect: '/login',
    meta: { title: '首页' },
  },
  {
    path: '/index',
    redirect: '/login',
  },
  {
    path: '/link',
    redirect: '/login',
  },
  {
    path: '/login',
    component: () => import(/* webpackChunkName: "main" */ `@/nd/views/Link.vue`),
    meta: { title: '登录通道' },
  },
  {
    path: '/login/form',
    component: () => import(/* webpackChunkName: "main" */ `@/nd/views/Login.vue`),
    meta: { title: '登录' },
  },
  {
    path: '/login/link',
    redirect: '/login',
  },
  {
    path: '/register',
    component: () => import(/* webpackChunkName: "main" */ `@/nd/views/Register.vue`),
    meta: { title: '注册' },
  },
  {
    path: '/forget',
    component: () => import(/* webpackChunkName: "main" */ `@/nd/views/Forget.vue`),
    meta: { title: '忘记密码' },
  },
  {
    path: '/footer',
    component: () => import(/* webpackChunkName: "app-footer" */ '@/nd/views/footer/Index.vue'),
    children: footer,
  },
  {
    path: '/error',
    component: () => import(/* webpackChunkName: "main" */ `@/nd/views/Error.vue`),
  },
  {
    path: '*',
    component: () => import(/* webpackChunkName: "main" */ `@/nd/views/Error.vue`),
    meta: { footer: false },
  },
]
